<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class MemberGroupValidate extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'id'                        => 'require|integer',
        'name|名称'                   => 'require|max:10',
        'referee|直推人数'              => 'require|between:0,10000',
        'reward_money|奖励'           => 'require|between:0,100',
        'zt_three_level_num|直推三级人数' => 'between:0,1000',
    ];
}
